package sedgewick;

public class Question41 {

    public static void main(String[] args) {
        MaxPQ<String> pq = new MaxPQ<String>(new String[] {"U", "S", "R", "P", "O", "A", "E", "J", "N", "F"});
        for (String x : pq) {
            System.out.print(x + " ");
        }
        System.out.println();
        System.out.println(pq);
        System.out.println();
        pq.insert("M");
        pq.insert("D");
        pq.insert("I");
        for (String x : pq) {
            System.out.print(x + " ");
        }
        System.out.println();
        System.out.println(pq);
    }

}
